package com.application;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @MapperScan  1、UserDao这个bean.在启动类上将该报扫描进去
 *
 *2、 持久层和业务层的包都必须是在主程序的包的子包下面
 */
@SpringBootApplication(scanBasePackages = "com.*")
@MapperScan(value={"com.action.*.dao"})
public class HellospringbootApplication {

	public static void main(String[] args) {
		SpringApplication.run(HellospringbootApplication.class, args);
	}

}
